package cc.decat.escript.ir.statement;

import cc.decat.escript.ir.Node;
import cc.decat.escript.ir.Visitor;

import java.util.List;

public class FunctionDeclarationStatement extends Statement {

    private String name;
    private List<String> params;
    private Node block;



    public FunctionDeclarationStatement() {

    }

    public FunctionDeclarationStatement(String name, List<String> params, Node block) {
        this.name = name;
        this.params = params;
        this.block = block;
    }

    public String getName() {
        return name;
    }

    public List<String> getParams() {
        return params;
    }

    public Node getBlock() {
        return block;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setParams(List<String> params) {
        this.params = params;
    }

    public void setBlock(Node block) {
        this.block = block;
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }
}
